package P6.T01;

import java.util.ArrayList;
import java.util.List;

public class DealMethods {
    private List<DealNumber> dns=new ArrayList<>();
    public void AddDealMethod(DealNumber ds){
        dns.add(ds);
    }

    public void DealODD(int i) {
        for(DealNumber d:dns){d.DealODD(i);}
    }

    public void DealEven(int i) {
        for (DealNumber d:dns){d.DealEven(i);}
    }
}
